Parent.prototype.say=function(){
    console.log('hello');
}
function Parent() {
    this.name = 'parent'
    this.like=['a','b','c']
}

function Child() {
    this.age=18
    // 构造函数继承
    Parent.call(this)//将Parent内的this指向Child里面的this
}
const c=new Child()
c.like.push('d')
const d=new Child()
console.log(c);
console.log(d);
// c.say()//访问不到


